/**
 */
package fUML.Semantics.Activities.IntermediateActivities.impl;

import fUML.Semantics.Activities.IntermediateActivities.ActivityEdgeInstance;
import fUML.Semantics.Activities.IntermediateActivities.ActivityExecution;
import fUML.Semantics.Activities.IntermediateActivities.ActivityFinalNodeActivation;
import fUML.Semantics.Activities.IntermediateActivities.ActivityNodeActivation;
import fUML.Semantics.Activities.IntermediateActivities.ActivityNodeActivationGroup;
import fUML.Semantics.Activities.IntermediateActivities.ActivityParameterNodeActivation;
import fUML.Semantics.Activities.IntermediateActivities.ControlNodeActivation;
import fUML.Semantics.Activities.IntermediateActivities.ControlToken;
import fUML.Semantics.Activities.IntermediateActivities.DecisionNodeActivation;
import fUML.Semantics.Activities.IntermediateActivities.ForkNodeActivation;
import fUML.Semantics.Activities.IntermediateActivities.ForkedToken;
import fUML.Semantics.Activities.IntermediateActivities.InitialNodeActivation;
import fUML.Semantics.Activities.IntermediateActivities.IntermediateActivitiesFactory;
import fUML.Semantics.Activities.IntermediateActivities.IntermediateActivitiesPackage;
import fUML.Semantics.Activities.IntermediateActivities.JoinNodeActivation;
import fUML.Semantics.Activities.IntermediateActivities.MergeNodeActivation;
import fUML.Semantics.Activities.IntermediateActivities.ObjectNodeActivation;
import fUML.Semantics.Activities.IntermediateActivities.ObjectToken;
import fUML.Semantics.Activities.IntermediateActivities.Offer;
import fUML.Semantics.Activities.IntermediateActivities.Token;

import fUML.Semantics.Loci.LociL1.LociL1Package;

import fUML.Semantics.Loci.LociL1.impl.LociL1PackageImpl;

import fUML.Semantics.Loci.LociL2.LociL2Package;

import fUML.Semantics.Loci.LociL2.impl.LociL2PackageImpl;

import fUML.Semantics.Loci.LociL3.LociL3Package;

import fUML.Semantics.Loci.LociL3.impl.LociL3PackageImpl;

import fUML.Syntax.Actions.BasicActions.BasicActionsPackage;

import fUML.Syntax.Actions.BasicActions.impl.BasicActionsPackageImpl;

import fUML.Syntax.Actions.CompleteActions.CompleteActionsPackage;

import fUML.Syntax.Actions.CompleteActions.impl.CompleteActionsPackageImpl;

import fUML.Syntax.Actions.IntermediateActions.IntermediateActionsPackage;

import fUML.Syntax.Actions.IntermediateActions.impl.IntermediateActionsPackageImpl;

import fUML.Syntax.Activities.CompleteStructuredActivities.CompleteStructuredActivitiesPackage;

import fUML.Syntax.Activities.CompleteStructuredActivities.impl.CompleteStructuredActivitiesPackageImpl;

import fUML.Syntax.Activities.ExtraStructuredActivities.ExtraStructuredActivitiesPackage;

import fUML.Syntax.Activities.ExtraStructuredActivities.impl.ExtraStructuredActivitiesPackageImpl;

import fUML.Syntax.Classes.Kernel.KernelPackage;

import fUML.Syntax.Classes.Kernel.impl.KernelPackageImpl;

import fUML.Syntax.CommonBehaviors.BasicBehaviors.BasicBehaviorsPackage;

import fUML.Syntax.CommonBehaviors.BasicBehaviors.impl.BasicBehaviorsPackageImpl;

import fUML.Syntax.CommonBehaviors.Communications.CommunicationsPackage;

import fUML.Syntax.CommonBehaviors.Communications.impl.CommunicationsPackageImpl;

import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EOperation;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;

import org.eclipse.emf.ecore.impl.EPackageImpl;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Package</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class IntermediateActivitiesPackageImpl extends EPackageImpl implements IntermediateActivitiesPackage {
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass activityNodeActivationGroupEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass activityEdgeInstanceEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass offerEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass tokenEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass activityExecutionEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass activityParameterNodeActivationEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass objectNodeActivationEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass objectTokenEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass mergeNodeActivationEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass controlNodeActivationEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass joinNodeActivationEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass forkedTokenEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass forkNodeActivationEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass initialNodeActivationEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass decisionNodeActivationEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass controlTokenEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass activityFinalNodeActivationEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass activityNodeActivationEClass = null;

	/**
	 * Creates an instance of the model <b>Package</b>, registered with
	 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
	 * package URI value.
	 * <p>Note: the correct way to create the package is via the static
	 * factory method {@link #init init()}, which also performs
	 * initialization of the package, or returns the registered package,
	 * if one already exists.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see org.eclipse.emf.ecore.EPackage.Registry
	 * @see fUML.Semantics.Activities.IntermediateActivities.IntermediateActivitiesPackage#eNS_URI
	 * @see #init()
	 * @generated
	 */
	private IntermediateActivitiesPackageImpl() {
		super(eNS_URI, IntermediateActivitiesFactory.eINSTANCE);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static boolean isInited = false;

	/**
	 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
	 * 
	 * <p>This method is used to initialize {@link IntermediateActivitiesPackage#eINSTANCE} when that field is accessed.
	 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #eNS_URI
	 * @see #createPackageContents()
	 * @see #initializePackageContents()
	 * @generated
	 */
	public static IntermediateActivitiesPackage init() {
		if (isInited) return (IntermediateActivitiesPackage)EPackage.Registry.INSTANCE.getEPackage(IntermediateActivitiesPackage.eNS_URI);

		// Obtain or create and register package
		IntermediateActivitiesPackageImpl theIntermediateActivitiesPackage = (IntermediateActivitiesPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof IntermediateActivitiesPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new IntermediateActivitiesPackageImpl());

		isInited = true;

		// Obtain or create and register interdependencies
		BasicBehaviorsPackageImpl theBasicBehaviorsPackage = (BasicBehaviorsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BasicBehaviorsPackage.eNS_URI) instanceof BasicBehaviorsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BasicBehaviorsPackage.eNS_URI) : BasicBehaviorsPackage.eINSTANCE);
		CommunicationsPackageImpl theCommunicationsPackage = (CommunicationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommunicationsPackage.eNS_URI) instanceof CommunicationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommunicationsPackage.eNS_URI) : CommunicationsPackage.eINSTANCE);
		KernelPackageImpl theKernelPackage = (KernelPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(KernelPackage.eNS_URI) instanceof KernelPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(KernelPackage.eNS_URI) : KernelPackage.eINSTANCE);
		fUML.Syntax.Activities.IntermediateActivities.impl.IntermediateActivitiesPackageImpl theIntermediateActivitiesPackage_1 = (fUML.Syntax.Activities.IntermediateActivities.impl.IntermediateActivitiesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(fUML.Syntax.Activities.IntermediateActivities.IntermediateActivitiesPackage.eNS_URI) instanceof fUML.Syntax.Activities.IntermediateActivities.impl.IntermediateActivitiesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(fUML.Syntax.Activities.IntermediateActivities.IntermediateActivitiesPackage.eNS_URI) : fUML.Syntax.Activities.IntermediateActivities.IntermediateActivitiesPackage.eINSTANCE);
		CompleteStructuredActivitiesPackageImpl theCompleteStructuredActivitiesPackage = (CompleteStructuredActivitiesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CompleteStructuredActivitiesPackage.eNS_URI) instanceof CompleteStructuredActivitiesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CompleteStructuredActivitiesPackage.eNS_URI) : CompleteStructuredActivitiesPackage.eINSTANCE);
		ExtraStructuredActivitiesPackageImpl theExtraStructuredActivitiesPackage = (ExtraStructuredActivitiesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ExtraStructuredActivitiesPackage.eNS_URI) instanceof ExtraStructuredActivitiesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ExtraStructuredActivitiesPackage.eNS_URI) : ExtraStructuredActivitiesPackage.eINSTANCE);
		IntermediateActionsPackageImpl theIntermediateActionsPackage = (IntermediateActionsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(IntermediateActionsPackage.eNS_URI) instanceof IntermediateActionsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(IntermediateActionsPackage.eNS_URI) : IntermediateActionsPackage.eINSTANCE);
		CompleteActionsPackageImpl theCompleteActionsPackage = (CompleteActionsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CompleteActionsPackage.eNS_URI) instanceof CompleteActionsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CompleteActionsPackage.eNS_URI) : CompleteActionsPackage.eINSTANCE);
		BasicActionsPackageImpl theBasicActionsPackage = (BasicActionsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BasicActionsPackage.eNS_URI) instanceof BasicActionsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BasicActionsPackage.eNS_URI) : BasicActionsPackage.eINSTANCE);
		fUML.Semantics.Actions.BasicActions.impl.BasicActionsPackageImpl theBasicActionsPackage_1 = (fUML.Semantics.Actions.BasicActions.impl.BasicActionsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(fUML.Semantics.Actions.BasicActions.BasicActionsPackage.eNS_URI) instanceof fUML.Semantics.Actions.BasicActions.impl.BasicActionsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(fUML.Semantics.Actions.BasicActions.BasicActionsPackage.eNS_URI) : fUML.Semantics.Actions.BasicActions.BasicActionsPackage.eINSTANCE);
		fUML.Semantics.Actions.IntermediateActions.impl.IntermediateActionsPackageImpl theIntermediateActionsPackage_1 = (fUML.Semantics.Actions.IntermediateActions.impl.IntermediateActionsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(fUML.Semantics.Actions.IntermediateActions.IntermediateActionsPackage.eNS_URI) instanceof fUML.Semantics.Actions.IntermediateActions.impl.IntermediateActionsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(fUML.Semantics.Actions.IntermediateActions.IntermediateActionsPackage.eNS_URI) : fUML.Semantics.Actions.IntermediateActions.IntermediateActionsPackage.eINSTANCE);
		fUML.Semantics.Actions.CompleteActions.impl.CompleteActionsPackageImpl theCompleteActionsPackage_1 = (fUML.Semantics.Actions.CompleteActions.impl.CompleteActionsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(fUML.Semantics.Actions.CompleteActions.CompleteActionsPackage.eNS_URI) instanceof fUML.Semantics.Actions.CompleteActions.impl.CompleteActionsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(fUML.Semantics.Actions.CompleteActions.CompleteActionsPackage.eNS_URI) : fUML.Semantics.Actions.CompleteActions.CompleteActionsPackage.eINSTANCE);
		fUML.Semantics.Activities.CompleteStructuredActivities.impl.CompleteStructuredActivitiesPackageImpl theCompleteStructuredActivitiesPackage_1 = (fUML.Semantics.Activities.CompleteStructuredActivities.impl.CompleteStructuredActivitiesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(fUML.Semantics.Activities.CompleteStructuredActivities.CompleteStructuredActivitiesPackage.eNS_URI) instanceof fUML.Semantics.Activities.CompleteStructuredActivities.impl.CompleteStructuredActivitiesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(fUML.Semantics.Activities.CompleteStructuredActivities.CompleteStructuredActivitiesPackage.eNS_URI) : fUML.Semantics.Activities.CompleteStructuredActivities.CompleteStructuredActivitiesPackage.eINSTANCE);
		fUML.Semantics.Activities.ExtraStructuredActivities.impl.ExtraStructuredActivitiesPackageImpl theExtraStructuredActivitiesPackage_1 = (fUML.Semantics.Activities.ExtraStructuredActivities.impl.ExtraStructuredActivitiesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(fUML.Semantics.Activities.ExtraStructuredActivities.ExtraStructuredActivitiesPackage.eNS_URI) instanceof fUML.Semantics.Activities.ExtraStructuredActivities.impl.ExtraStructuredActivitiesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(fUML.Semantics.Activities.ExtraStructuredActivities.ExtraStructuredActivitiesPackage.eNS_URI) : fUML.Semantics.Activities.ExtraStructuredActivities.ExtraStructuredActivitiesPackage.eINSTANCE);
		fUML.Semantics.Classes.Kernel.impl.KernelPackageImpl theKernelPackage_1 = (fUML.Semantics.Classes.Kernel.impl.KernelPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(fUML.Semantics.Classes.Kernel.KernelPackage.eNS_URI) instanceof fUML.Semantics.Classes.Kernel.impl.KernelPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(fUML.Semantics.Classes.Kernel.KernelPackage.eNS_URI) : fUML.Semantics.Classes.Kernel.KernelPackage.eINSTANCE);
		LociL2PackageImpl theLociL2Package = (LociL2PackageImpl)(EPackage.Registry.INSTANCE.getEPackage(LociL2Package.eNS_URI) instanceof LociL2PackageImpl ? EPackage.Registry.INSTANCE.getEPackage(LociL2Package.eNS_URI) : LociL2Package.eINSTANCE);
		LociL3PackageImpl theLociL3Package = (LociL3PackageImpl)(EPackage.Registry.INSTANCE.getEPackage(LociL3Package.eNS_URI) instanceof LociL3PackageImpl ? EPackage.Registry.INSTANCE.getEPackage(LociL3Package.eNS_URI) : LociL3Package.eINSTANCE);
		LociL1PackageImpl theLociL1Package = (LociL1PackageImpl)(EPackage.Registry.INSTANCE.getEPackage(LociL1Package.eNS_URI) instanceof LociL1PackageImpl ? EPackage.Registry.INSTANCE.getEPackage(LociL1Package.eNS_URI) : LociL1Package.eINSTANCE);
		fUML.Semantics.CommonBehaviors.Communications.impl.CommunicationsPackageImpl theCommunicationsPackage_1 = (fUML.Semantics.CommonBehaviors.Communications.impl.CommunicationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(fUML.Semantics.CommonBehaviors.Communications.CommunicationsPackage.eNS_URI) instanceof fUML.Semantics.CommonBehaviors.Communications.impl.CommunicationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(fUML.Semantics.CommonBehaviors.Communications.CommunicationsPackage.eNS_URI) : fUML.Semantics.CommonBehaviors.Communications.CommunicationsPackage.eINSTANCE);
		fUML.Semantics.CommonBehaviors.BasicBehaviors.impl.BasicBehaviorsPackageImpl theBasicBehaviorsPackage_1 = (fUML.Semantics.CommonBehaviors.BasicBehaviors.impl.BasicBehaviorsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(fUML.Semantics.CommonBehaviors.BasicBehaviors.BasicBehaviorsPackage.eNS_URI) instanceof fUML.Semantics.CommonBehaviors.BasicBehaviors.impl.BasicBehaviorsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(fUML.Semantics.CommonBehaviors.BasicBehaviors.BasicBehaviorsPackage.eNS_URI) : fUML.Semantics.CommonBehaviors.BasicBehaviors.BasicBehaviorsPackage.eINSTANCE);

		// Create package meta-data objects
		theIntermediateActivitiesPackage.createPackageContents();
		theBasicBehaviorsPackage.createPackageContents();
		theCommunicationsPackage.createPackageContents();
		theKernelPackage.createPackageContents();
		theIntermediateActivitiesPackage_1.createPackageContents();
		theCompleteStructuredActivitiesPackage.createPackageContents();
		theExtraStructuredActivitiesPackage.createPackageContents();
		theIntermediateActionsPackage.createPackageContents();
		theCompleteActionsPackage.createPackageContents();
		theBasicActionsPackage.createPackageContents();
		theBasicActionsPackage_1.createPackageContents();
		theIntermediateActionsPackage_1.createPackageContents();
		theCompleteActionsPackage_1.createPackageContents();
		theCompleteStructuredActivitiesPackage_1.createPackageContents();
		theExtraStructuredActivitiesPackage_1.createPackageContents();
		theKernelPackage_1.createPackageContents();
		theLociL2Package.createPackageContents();
		theLociL3Package.createPackageContents();
		theLociL1Package.createPackageContents();
		theCommunicationsPackage_1.createPackageContents();
		theBasicBehaviorsPackage_1.createPackageContents();

		// Initialize created meta-data
		theIntermediateActivitiesPackage.initializePackageContents();
		theBasicBehaviorsPackage.initializePackageContents();
		theCommunicationsPackage.initializePackageContents();
		theKernelPackage.initializePackageContents();
		theIntermediateActivitiesPackage_1.initializePackageContents();
		theCompleteStructuredActivitiesPackage.initializePackageContents();
		theExtraStructuredActivitiesPackage.initializePackageContents();
		theIntermediateActionsPackage.initializePackageContents();
		theCompleteActionsPackage.initializePackageContents();
		theBasicActionsPackage.initializePackageContents();
		theBasicActionsPackage_1.initializePackageContents();
		theIntermediateActionsPackage_1.initializePackageContents();
		theCompleteActionsPackage_1.initializePackageContents();
		theCompleteStructuredActivitiesPackage_1.initializePackageContents();
		theExtraStructuredActivitiesPackage_1.initializePackageContents();
		theKernelPackage_1.initializePackageContents();
		theLociL2Package.initializePackageContents();
		theLociL3Package.initializePackageContents();
		theLociL1Package.initializePackageContents();
		theCommunicationsPackage_1.initializePackageContents();
		theBasicBehaviorsPackage_1.initializePackageContents();

		// Mark meta-data to indicate it can't be changed
		theIntermediateActivitiesPackage.freeze();

  
		// Update the registry and return the package
		EPackage.Registry.INSTANCE.put(IntermediateActivitiesPackage.eNS_URI, theIntermediateActivitiesPackage);
		return theIntermediateActivitiesPackage;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getActivityNodeActivationGroup() {
		return activityNodeActivationGroupEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getActivityNodeActivationGroup_EdgeInstances() {
		return (EReference)activityNodeActivationGroupEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getActivityNodeActivationGroup_NodeActivations() {
		return (EReference)activityNodeActivationGroupEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getActivityNodeActivationGroup_ActivityExecution() {
		return (EReference)activityNodeActivationGroupEClass.getEStructuralFeatures().get(2);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getActivityNodeActivationGroup_ContainingNodeActivation() {
		return (EReference)activityNodeActivationGroupEClass.getEStructuralFeatures().get(3);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getActivityEdgeInstance() {
		return activityEdgeInstanceEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getActivityEdgeInstance_Edge() {
		return (EReference)activityEdgeInstanceEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getActivityEdgeInstance_Source() {
		return (EReference)activityEdgeInstanceEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getActivityEdgeInstance_Target() {
		return (EReference)activityEdgeInstanceEClass.getEStructuralFeatures().get(2);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getActivityEdgeInstance_Offers() {
		return (EReference)activityEdgeInstanceEClass.getEStructuralFeatures().get(3);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getActivityEdgeInstance_Group() {
		return (EReference)activityEdgeInstanceEClass.getEStructuralFeatures().get(4);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getOffer() {
		return offerEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getOffer_OfferedTokens() {
		return (EReference)offerEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getToken() {
		return tokenEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getToken_Holder() {
		return (EReference)tokenEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getActivityExecution() {
		return activityExecutionEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getActivityExecution_ActivationGroup() {
		return (EReference)activityExecutionEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getActivityParameterNodeActivation() {
		return activityParameterNodeActivationEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getObjectNodeActivation() {
		return objectNodeActivationEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getObjectNodeActivation_OfferedTokenCount() {
		return (EAttribute)objectNodeActivationEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getObjectToken() {
		return objectTokenEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getObjectToken_Value() {
		return (EReference)objectTokenEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getMergeNodeActivation() {
		return mergeNodeActivationEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getControlNodeActivation() {
		return controlNodeActivationEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getJoinNodeActivation() {
		return joinNodeActivationEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getForkedToken() {
		return forkedTokenEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getForkedToken_BaseToken() {
		return (EReference)forkedTokenEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getForkedToken_RemainingOffersCount() {
		return (EAttribute)forkedTokenEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getForkNodeActivation() {
		return forkNodeActivationEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getInitialNodeActivation() {
		return initialNodeActivationEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getDecisionNodeActivation() {
		return decisionNodeActivationEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getDecisionNodeActivation_DecisionInputExecution() {
		return (EReference)decisionNodeActivationEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getControlToken() {
		return controlTokenEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getActivityFinalNodeActivation() {
		return activityFinalNodeActivationEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getActivityNodeActivation() {
		return activityNodeActivationEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getActivityNodeActivation_OutgoingEdges() {
		return (EReference)activityNodeActivationEClass.getEStructuralFeatures().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getActivityNodeActivation_IncomingEdges() {
		return (EReference)activityNodeActivationEClass.getEStructuralFeatures().get(1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getActivityNodeActivation_HeldTokens() {
		return (EReference)activityNodeActivationEClass.getEStructuralFeatures().get(2);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getActivityNodeActivation_Group() {
		return (EReference)activityNodeActivationEClass.getEStructuralFeatures().get(3);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EReference getActivityNodeActivation_Node() {
		return (EReference)activityNodeActivationEClass.getEStructuralFeatures().get(4);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EAttribute getActivityNodeActivation_Running() {
		return (EAttribute)activityNodeActivationEClass.getEStructuralFeatures().get(5);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public IntermediateActivitiesFactory getIntermediateActivitiesFactory() {
		return (IntermediateActivitiesFactory)getEFactoryInstance();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private boolean isCreated = false;

	/**
	 * Creates the meta-model objects for the package.  This method is
	 * guarded to have no affect on any invocation but its first.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void createPackageContents() {
		if (isCreated) return;
		isCreated = true;

		// Create classes and their features
		activityNodeActivationGroupEClass = createEClass(ACTIVITY_NODE_ACTIVATION_GROUP);
		createEReference(activityNodeActivationGroupEClass, ACTIVITY_NODE_ACTIVATION_GROUP__EDGE_INSTANCES);
		createEReference(activityNodeActivationGroupEClass, ACTIVITY_NODE_ACTIVATION_GROUP__NODE_ACTIVATIONS);
		createEReference(activityNodeActivationGroupEClass, ACTIVITY_NODE_ACTIVATION_GROUP__ACTIVITY_EXECUTION);
		createEReference(activityNodeActivationGroupEClass, ACTIVITY_NODE_ACTIVATION_GROUP__CONTAINING_NODE_ACTIVATION);

		activityEdgeInstanceEClass = createEClass(ACTIVITY_EDGE_INSTANCE);
		createEReference(activityEdgeInstanceEClass, ACTIVITY_EDGE_INSTANCE__EDGE);
		createEReference(activityEdgeInstanceEClass, ACTIVITY_EDGE_INSTANCE__SOURCE);
		createEReference(activityEdgeInstanceEClass, ACTIVITY_EDGE_INSTANCE__TARGET);
		createEReference(activityEdgeInstanceEClass, ACTIVITY_EDGE_INSTANCE__OFFERS);
		createEReference(activityEdgeInstanceEClass, ACTIVITY_EDGE_INSTANCE__GROUP);

		offerEClass = createEClass(OFFER);
		createEReference(offerEClass, OFFER__OFFERED_TOKENS);

		tokenEClass = createEClass(TOKEN);
		createEReference(tokenEClass, TOKEN__HOLDER);

		activityExecutionEClass = createEClass(ACTIVITY_EXECUTION);
		createEReference(activityExecutionEClass, ACTIVITY_EXECUTION__ACTIVATION_GROUP);

		activityParameterNodeActivationEClass = createEClass(ACTIVITY_PARAMETER_NODE_ACTIVATION);

		objectNodeActivationEClass = createEClass(OBJECT_NODE_ACTIVATION);
		createEAttribute(objectNodeActivationEClass, OBJECT_NODE_ACTIVATION__OFFERED_TOKEN_COUNT);

		objectTokenEClass = createEClass(OBJECT_TOKEN);
		createEReference(objectTokenEClass, OBJECT_TOKEN__VALUE);

		mergeNodeActivationEClass = createEClass(MERGE_NODE_ACTIVATION);

		controlNodeActivationEClass = createEClass(CONTROL_NODE_ACTIVATION);

		joinNodeActivationEClass = createEClass(JOIN_NODE_ACTIVATION);

		forkedTokenEClass = createEClass(FORKED_TOKEN);
		createEReference(forkedTokenEClass, FORKED_TOKEN__BASE_TOKEN);
		createEAttribute(forkedTokenEClass, FORKED_TOKEN__REMAINING_OFFERS_COUNT);

		forkNodeActivationEClass = createEClass(FORK_NODE_ACTIVATION);

		initialNodeActivationEClass = createEClass(INITIAL_NODE_ACTIVATION);

		decisionNodeActivationEClass = createEClass(DECISION_NODE_ACTIVATION);
		createEReference(decisionNodeActivationEClass, DECISION_NODE_ACTIVATION__DECISION_INPUT_EXECUTION);

		controlTokenEClass = createEClass(CONTROL_TOKEN);

		activityFinalNodeActivationEClass = createEClass(ACTIVITY_FINAL_NODE_ACTIVATION);

		activityNodeActivationEClass = createEClass(ACTIVITY_NODE_ACTIVATION);
		createEReference(activityNodeActivationEClass, ACTIVITY_NODE_ACTIVATION__OUTGOING_EDGES);
		createEReference(activityNodeActivationEClass, ACTIVITY_NODE_ACTIVATION__INCOMING_EDGES);
		createEReference(activityNodeActivationEClass, ACTIVITY_NODE_ACTIVATION__HELD_TOKENS);
		createEReference(activityNodeActivationEClass, ACTIVITY_NODE_ACTIVATION__GROUP);
		createEReference(activityNodeActivationEClass, ACTIVITY_NODE_ACTIVATION__NODE);
		createEAttribute(activityNodeActivationEClass, ACTIVITY_NODE_ACTIVATION__RUNNING);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private boolean isInitialized = false;

	/**
	 * Complete the initialization of the package and its meta-model.  This
	 * method is guarded to have no affect on any invocation but its first.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void initializePackageContents() {
		if (isInitialized) return;
		isInitialized = true;

		// Initialize package
		setName(eNAME);
		setNsPrefix(eNS_PREFIX);
		setNsURI(eNS_URI);

		// Obtain other dependent packages
		fUML.Semantics.Activities.CompleteStructuredActivities.CompleteStructuredActivitiesPackage theCompleteStructuredActivitiesPackage_1 = (fUML.Semantics.Activities.CompleteStructuredActivities.CompleteStructuredActivitiesPackage)EPackage.Registry.INSTANCE.getEPackage(fUML.Semantics.Activities.CompleteStructuredActivities.CompleteStructuredActivitiesPackage.eNS_URI);
		fUML.Syntax.Activities.IntermediateActivities.IntermediateActivitiesPackage theIntermediateActivitiesPackage_1 = (fUML.Syntax.Activities.IntermediateActivities.IntermediateActivitiesPackage)EPackage.Registry.INSTANCE.getEPackage(fUML.Syntax.Activities.IntermediateActivities.IntermediateActivitiesPackage.eNS_URI);
		fUML.Semantics.Classes.Kernel.KernelPackage theKernelPackage_1 = (fUML.Semantics.Classes.Kernel.KernelPackage)EPackage.Registry.INSTANCE.getEPackage(fUML.Semantics.Classes.Kernel.KernelPackage.eNS_URI);
		fUML.Semantics.CommonBehaviors.BasicBehaviors.BasicBehaviorsPackage theBasicBehaviorsPackage_1 = (fUML.Semantics.CommonBehaviors.BasicBehaviors.BasicBehaviorsPackage)EPackage.Registry.INSTANCE.getEPackage(fUML.Semantics.CommonBehaviors.BasicBehaviors.BasicBehaviorsPackage.eNS_URI);
		KernelPackage theKernelPackage = (KernelPackage)EPackage.Registry.INSTANCE.getEPackage(KernelPackage.eNS_URI);
		LociL1Package theLociL1Package = (LociL1Package)EPackage.Registry.INSTANCE.getEPackage(LociL1Package.eNS_URI);

		// Create type parameters

		// Set bounds for type parameters

		// Add supertypes to classes
		activityExecutionEClass.getESuperTypes().add(theBasicBehaviorsPackage_1.getExecution());
		activityParameterNodeActivationEClass.getESuperTypes().add(this.getObjectNodeActivation());
		objectNodeActivationEClass.getESuperTypes().add(this.getActivityNodeActivation());
		objectTokenEClass.getESuperTypes().add(this.getToken());
		mergeNodeActivationEClass.getESuperTypes().add(this.getControlNodeActivation());
		controlNodeActivationEClass.getESuperTypes().add(this.getActivityNodeActivation());
		joinNodeActivationEClass.getESuperTypes().add(this.getControlNodeActivation());
		forkedTokenEClass.getESuperTypes().add(this.getToken());
		forkNodeActivationEClass.getESuperTypes().add(this.getControlNodeActivation());
		initialNodeActivationEClass.getESuperTypes().add(this.getControlNodeActivation());
		decisionNodeActivationEClass.getESuperTypes().add(this.getControlNodeActivation());
		controlTokenEClass.getESuperTypes().add(this.getToken());
		activityFinalNodeActivationEClass.getESuperTypes().add(this.getControlNodeActivation());
		activityNodeActivationEClass.getESuperTypes().add(theLociL1Package.getSemanticVisitor());

		// Initialize classes and features; add operations and parameters
		initEClass(activityNodeActivationGroupEClass, ActivityNodeActivationGroup.class, "ActivityNodeActivationGroup", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getActivityNodeActivationGroup_EdgeInstances(), this.getActivityEdgeInstance(), this.getActivityEdgeInstance_Group(), "edgeInstances", null, 0, -1, ActivityNodeActivationGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
		initEReference(getActivityNodeActivationGroup_NodeActivations(), this.getActivityNodeActivation(), this.getActivityNodeActivation_Group(), "nodeActivations", null, 0, -1, ActivityNodeActivationGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
		initEReference(getActivityNodeActivationGroup_ActivityExecution(), this.getActivityExecution(), this.getActivityExecution_ActivationGroup(), "activityExecution", null, 0, 1, ActivityNodeActivationGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
		initEReference(getActivityNodeActivationGroup_ContainingNodeActivation(), theCompleteStructuredActivitiesPackage_1.getStructuredActivityNodeActivation(), theCompleteStructuredActivitiesPackage_1.getStructuredActivityNodeActivation_ActivationGroup(), "containingNodeActivation", null, 0, 1, ActivityNodeActivationGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);

		EOperation op = addEOperation(activityNodeActivationGroupEClass, null, "run", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, this.getActivityNodeActivation(), "activations", 0, -1, IS_UNIQUE, !IS_ORDERED);

		op = addEOperation(activityNodeActivationGroupEClass, ecorePackage.getEBoolean(), "checkIncomingEdges", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, this.getActivityEdgeInstance(), "incomingEdges", 0, -1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, this.getActivityNodeActivation(), "activations", 0, -1, IS_UNIQUE, !IS_ORDERED);

		op = addEOperation(activityNodeActivationGroupEClass, null, "runNodes", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, theIntermediateActivitiesPackage_1.getActivityNode(), "nodes", 0, -1, IS_UNIQUE, !IS_ORDERED);

		op = addEOperation(activityNodeActivationGroupEClass, null, "activate", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, theIntermediateActivitiesPackage_1.getActivityNode(), "nodes", 0, -1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, theIntermediateActivitiesPackage_1.getActivityEdge(), "edges", 0, -1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(activityNodeActivationGroupEClass, null, "terminateAll", 1, 1, IS_UNIQUE, !IS_ORDERED);

		op = addEOperation(activityNodeActivationGroupEClass, null, "createNodeActivations", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, theIntermediateActivitiesPackage_1.getActivityNode(), "nodes", 0, -1, IS_UNIQUE, !IS_ORDERED);

		op = addEOperation(activityNodeActivationGroupEClass, this.getActivityNodeActivation(), "createNodeActivation", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, theIntermediateActivitiesPackage_1.getActivityNode(), "node", 1, 1, IS_UNIQUE, !IS_ORDERED);

		op = addEOperation(activityNodeActivationGroupEClass, null, "addNodeActivation", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, this.getActivityNodeActivation(), "activation", 1, 1, IS_UNIQUE, !IS_ORDERED);

		op = addEOperation(activityNodeActivationGroupEClass, this.getActivityNodeActivation(), "getNodeActivation", 0, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, theIntermediateActivitiesPackage_1.getActivityNode(), "node", 1, 1, IS_UNIQUE, !IS_ORDERED);

		op = addEOperation(activityNodeActivationGroupEClass, null, "createEdgeInstances", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, theIntermediateActivitiesPackage_1.getActivityEdge(), "edges", 0, -1, IS_UNIQUE, !IS_ORDERED);

		op = addEOperation(activityNodeActivationGroupEClass, null, "addEdgeInstance", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, this.getActivityEdgeInstance(), "instance", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(activityNodeActivationGroupEClass, this.getActivityExecution(), "fUML_getActivityExecution", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(activityNodeActivationGroupEClass, this.getActivityParameterNodeActivation(), "getOutputParameterNodeActivations", 0, -1, IS_UNIQUE, !IS_ORDERED);

		initEClass(activityEdgeInstanceEClass, ActivityEdgeInstance.class, "ActivityEdgeInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getActivityEdgeInstance_Edge(), theIntermediateActivitiesPackage_1.getActivityEdge(), null, "edge", null, 0, 1, ActivityEdgeInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
		initEReference(getActivityEdgeInstance_Source(), this.getActivityNodeActivation(), this.getActivityNodeActivation_OutgoingEdges(), "source", null, 1, 1, ActivityEdgeInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
		initEReference(getActivityEdgeInstance_Target(), this.getActivityNodeActivation(), this.getActivityNodeActivation_IncomingEdges(), "target", null, 1, 1, ActivityEdgeInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
		initEReference(getActivityEdgeInstance_Offers(), this.getOffer(), null, "offers", null, 0, -1, ActivityEdgeInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
		initEReference(getActivityEdgeInstance_Group(), this.getActivityNodeActivationGroup(), this.getActivityNodeActivationGroup_EdgeInstances(), "group", null, 1, 1, ActivityEdgeInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);

		op = addEOperation(activityEdgeInstanceEClass, null, "sendOffer", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, this.getToken(), "tokens", 0, -1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(activityEdgeInstanceEClass, ecorePackage.getEInt(), "countOfferedValues", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(activityEdgeInstanceEClass, this.getToken(), "takeOfferedTokens", 0, -1, IS_UNIQUE, !IS_ORDERED);

		op = addEOperation(activityEdgeInstanceEClass, this.getToken(), "takeOfferedTokens", 0, -1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, ecorePackage.getEInt(), "maxCount", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(activityEdgeInstanceEClass, this.getToken(), "getOfferedTokens", 0, -1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(activityEdgeInstanceEClass, ecorePackage.getEBoolean(), "hasOffer", 1, 1, IS_UNIQUE, !IS_ORDERED);

		initEClass(offerEClass, Offer.class, "Offer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getOffer_OfferedTokens(), this.getToken(), null, "offeredTokens", null, 0, -1, Offer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);

		addEOperation(offerEClass, ecorePackage.getEInt(), "countOfferedValues", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(offerEClass, this.getToken(), "fUML_getOfferedTokens", 0, -1, IS_UNIQUE, !IS_ORDERED);

		op = addEOperation(offerEClass, null, "removeOfferedValues", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, ecorePackage.getEInt(), "count", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(offerEClass, null, "removeWithdrawnTokens", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(offerEClass, ecorePackage.getEBoolean(), "hasTokens", 1, 1, IS_UNIQUE, !IS_ORDERED);

		initEClass(tokenEClass, Token.class, "Token", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getToken_Holder(), this.getActivityNodeActivation(), this.getActivityNodeActivation_HeldTokens(), "holder", null, 0, 1, Token.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);

		op = addEOperation(tokenEClass, this.getToken(), "transfer", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, this.getActivityNodeActivation(), "holder", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(tokenEClass, null, "withdraw", 1, 1, IS_UNIQUE, !IS_ORDERED);

		op = addEOperation(tokenEClass, ecorePackage.getEBoolean(), "equals", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, this.getToken(), "other", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(tokenEClass, this.getToken(), "copy", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(tokenEClass, ecorePackage.getEBoolean(), "isWithdrawn", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(tokenEClass, ecorePackage.getEBoolean(), "isControl", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(tokenEClass, theKernelPackage_1.getValue(), "getValue", 0, 1, IS_UNIQUE, !IS_ORDERED);

		initEClass(activityExecutionEClass, ActivityExecution.class, "ActivityExecution", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getActivityExecution_ActivationGroup(), this.getActivityNodeActivationGroup(), this.getActivityNodeActivationGroup_ActivityExecution(), "activationGroup", null, 1, 1, ActivityExecution.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);

		initEClass(activityParameterNodeActivationEClass, ActivityParameterNodeActivation.class, "ActivityParameterNodeActivation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(objectNodeActivationEClass, ObjectNodeActivation.class, "ObjectNodeActivation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEAttribute(getObjectNodeActivation_OfferedTokenCount(), ecorePackage.getEInt(), "offeredTokenCount", null, 1, 1, ObjectNodeActivation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);

		addEOperation(objectNodeActivationEClass, ecorePackage.getEInt(), "countOfferedValues", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(objectNodeActivationEClass, null, "sendUnofferedTokens", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(objectNodeActivationEClass, ecorePackage.getEInt(), "countUnofferedTokens", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(objectNodeActivationEClass, this.getToken(), "getUnofferedTokens", 0, -1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(objectNodeActivationEClass, this.getToken(), "takeUnofferedTokens", 0, -1, IS_UNIQUE, !IS_ORDERED);

		initEClass(objectTokenEClass, ObjectToken.class, "ObjectToken", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getObjectToken_Value(), theKernelPackage_1.getValue(), null, "value", null, 0, 1, ObjectToken.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);

		initEClass(mergeNodeActivationEClass, MergeNodeActivation.class, "MergeNodeActivation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(controlNodeActivationEClass, ControlNodeActivation.class, "ControlNodeActivation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(joinNodeActivationEClass, JoinNodeActivation.class, "JoinNodeActivation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(forkedTokenEClass, ForkedToken.class, "ForkedToken", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getForkedToken_BaseToken(), this.getToken(), null, "baseToken", null, 1, 1, ForkedToken.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
		initEAttribute(getForkedToken_RemainingOffersCount(), ecorePackage.getEInt(), "remainingOffersCount", null, 1, 1, ForkedToken.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);

		op = addEOperation(forkedTokenEClass, ecorePackage.getEBoolean(), "equals", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, this.getToken(), "otherToken", 1, 1, IS_UNIQUE, !IS_ORDERED);

		initEClass(forkNodeActivationEClass, ForkNodeActivation.class, "ForkNodeActivation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(initialNodeActivationEClass, InitialNodeActivation.class, "InitialNodeActivation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(decisionNodeActivationEClass, DecisionNodeActivation.class, "DecisionNodeActivation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getDecisionNodeActivation_DecisionInputExecution(), theBasicBehaviorsPackage_1.getExecution(), null, "decisionInputExecution", null, 0, 1, DecisionNodeActivation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);

		op = addEOperation(decisionNodeActivationEClass, theKernelPackage_1.getValue(), "getDecisionValues", 0, -1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, this.getToken(), "incomingTokens", 0, -1, IS_UNIQUE, !IS_ORDERED);

		op = addEOperation(decisionNodeActivationEClass, theKernelPackage_1.getValue(), "executeDecisionInputBehavior", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, theKernelPackage_1.getValue(), "inputValue", 0, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, theKernelPackage_1.getValue(), "decisionInputValue", 0, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(decisionNodeActivationEClass, theKernelPackage_1.getValue(), "getDecisionInputFlowValue", 0, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(decisionNodeActivationEClass, this.getActivityEdgeInstance(), "getDecisionInputFlowInstance", 0, 1, IS_UNIQUE, !IS_ORDERED);

		op = addEOperation(decisionNodeActivationEClass, ecorePackage.getEBoolean(), "test", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, theKernelPackage.getValueSpecification(), "guard", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, theKernelPackage_1.getValue(), "value", 1, 1, IS_UNIQUE, !IS_ORDERED);

		op = addEOperation(decisionNodeActivationEClass, this.getToken(), "removeJoinedControlTokens", 0, -1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, this.getToken(), "incomingTokens", 0, -1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(decisionNodeActivationEClass, ecorePackage.getEBoolean(), "hasObjectFlowInput", 1, 1, IS_UNIQUE, !IS_ORDERED);

		initEClass(controlTokenEClass, ControlToken.class, "ControlToken", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(activityFinalNodeActivationEClass, ActivityFinalNodeActivation.class, "ActivityFinalNodeActivation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		initEClass(activityNodeActivationEClass, ActivityNodeActivation.class, "ActivityNodeActivation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
		initEReference(getActivityNodeActivation_OutgoingEdges(), this.getActivityEdgeInstance(), this.getActivityEdgeInstance_Source(), "outgoingEdges", null, 0, -1, ActivityNodeActivation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
		initEReference(getActivityNodeActivation_IncomingEdges(), this.getActivityEdgeInstance(), this.getActivityEdgeInstance_Target(), "incomingEdges", null, 0, -1, ActivityNodeActivation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
		initEReference(getActivityNodeActivation_HeldTokens(), this.getToken(), this.getToken_Holder(), "heldTokens", null, 0, -1, ActivityNodeActivation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
		initEReference(getActivityNodeActivation_Group(), this.getActivityNodeActivationGroup(), this.getActivityNodeActivationGroup_NodeActivations(), "group", null, 1, 1, ActivityNodeActivation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
		initEReference(getActivityNodeActivation_Node(), theIntermediateActivitiesPackage_1.getActivityNode(), null, "node", null, 0, 1, ActivityNodeActivation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
		initEAttribute(getActivityNodeActivation_Running(), ecorePackage.getEBoolean(), "running", null, 1, 1, ActivityNodeActivation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);

		addEOperation(activityNodeActivationEClass, null, "run", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(activityNodeActivationEClass, null, "receiveOffer", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(activityNodeActivationEClass, this.getToken(), "takeOfferedTokens", 0, -1, IS_UNIQUE, !IS_ORDERED);

		op = addEOperation(activityNodeActivationEClass, null, "fire", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, this.getToken(), "incomingTokens", 0, -1, IS_UNIQUE, !IS_ORDERED);

		op = addEOperation(activityNodeActivationEClass, null, "sendOffers", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, this.getToken(), "tokens", 0, -1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(activityNodeActivationEClass, null, "terminate", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(activityNodeActivationEClass, ecorePackage.getEBoolean(), "isReady", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(activityNodeActivationEClass, ecorePackage.getEBoolean(), "fUML_isRunning", 1, 1, IS_UNIQUE, !IS_ORDERED);

		op = addEOperation(activityNodeActivationEClass, null, "addOutgoingEdge", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, this.getActivityEdgeInstance(), "edge", 1, 1, IS_UNIQUE, !IS_ORDERED);

		op = addEOperation(activityNodeActivationEClass, null, "addIncomingEdge", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, this.getActivityEdgeInstance(), "edge", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(activityNodeActivationEClass, null, "createNodeActivations", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(activityNodeActivationEClass, null, "createEdgeInstances", 1, 1, IS_UNIQUE, !IS_ORDERED);

		op = addEOperation(activityNodeActivationEClass, ecorePackage.getEBoolean(), "isSourceFor", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, this.getActivityEdgeInstance(), "edgeInstance", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(activityNodeActivationEClass, this.getActivityExecution(), "getActivityExecution", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(activityNodeActivationEClass, theKernelPackage_1.getObject(), "getExecutionContext", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(activityNodeActivationEClass, theLociL1Package.getLocus(), "getExecutionLocus", 1, 1, IS_UNIQUE, !IS_ORDERED);

		op = addEOperation(activityNodeActivationEClass, this.getActivityNodeActivation(), "getNodeActivation", 0, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, theIntermediateActivitiesPackage_1.getActivityNode(), "node", 1, 1, IS_UNIQUE, !IS_ORDERED);

		op = addEOperation(activityNodeActivationEClass, null, "addToken", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, this.getToken(), "token", 1, 1, IS_UNIQUE, !IS_ORDERED);

		op = addEOperation(activityNodeActivationEClass, ecorePackage.getEInt(), "removeToken", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, this.getToken(), "token", 1, 1, IS_UNIQUE, !IS_ORDERED);

		op = addEOperation(activityNodeActivationEClass, null, "addTokens", 1, 1, IS_UNIQUE, !IS_ORDERED);
		addEParameter(op, this.getToken(), "tokens", 0, -1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(activityNodeActivationEClass, this.getToken(), "takeTokens", 0, -1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(activityNodeActivationEClass, null, "clearTokens", 1, 1, IS_UNIQUE, !IS_ORDERED);

		addEOperation(activityNodeActivationEClass, this.getToken(), "getTokens", 0, -1, IS_UNIQUE, !IS_ORDERED);

		// Create resource
		createResource(eNS_URI);
	}

} //IntermediateActivitiesPackageImpl
